﻿<%@ Page Title="Mail User" Language="C#" MasterPageFile="~/Pages/admin/adminMaster.Master" AutoEventWireup="true" CodeBehind="UserMail.aspx.cs" Inherits="WarehouseWebAPP.Pages.admin.Mail_Pages.UserMail" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style23
    {
        width: 307px;
    }
    .style22
    {
        color: #6D6D6D;
    }
    .style24
    {
        width: 425px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1" bgcolor="White" style="width: 102%">
    <tr>
        <td colspan="3" align="center">
            <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="1000">
                <ProgressTemplate>
                    <img alt="" src="../../images/update.gif" 
    style="width: 31px; height: 31px" />
                </ProgressTemplate>
            </asp:UpdateProgress>
        </td>
    </tr>
    <tr>
        <td colspan="3" align="center">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Label ID="SentLabel" runat="server" ForeColor="#607894" 
    Text="Mail Sent" Visible="False" 
                Width="89px" BackColor="#FFFFCC"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="SendButton" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr bgcolor="White">
        <td class="style23">
            <span class="style22">To:&nbsp; <cc1:ComboBox ID="MailToDropDownList" 
                runat="server" AppendDataBoundItems="True" AutoCompleteMode="Append" 
                DataSourceID="UserObjectDataSource" DataTextField="user_name" 
                DataValueField="user_num" DropDownStyle="DropDownList" MaxLength="0" 
                style="display: inline;">
            </cc1:ComboBox>
            </span>
        </td>
        <td class="style24">
            <span class="style22">Subject:
            </span>
            <asp:TextBox ID="SubjectTextBox" runat="server" Width="300px" 
                CssClass="style22"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="SendButton" runat="server" onclick="SendButton_Click" 
                BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" 
                BorderWidth="1px"  Font-Names="Verdana" Font-Size="Small" ForeColor="#284775"
                Text="Send" style="height: 24px" />
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <cc2:Editor ID="BodyEditor" runat="server" />
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="SendButton" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:ObjectDataSource ID="UserObjectDataSource" runat="server" 
                SelectMethod="userGet" TypeName="WarehouseWebAPP.code.BLL.UserBLL">
            </asp:ObjectDataSource>
        </td>
    </tr>
</table>
</asp:Content>
